<?php $form=$this->beginWidget('CActiveForm', array(
                    'id'=>'createcontact-form',
                    'enableClientValidation'=>true,
                    'clientOptions'=>array(
                        'validateOnSubmit'=> false,
                    ),
                    'htmlOptions' => array(
                        'class' => 'form-horizontal',
                    )
                )); ?>
<fieldset>
	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Danh xưng");?></label>
	  <div class="controls">
	    <?php echo $form->dropDownList($model,'title',$model->getTitle()); ?>
	    <?php echo $form->error($model,'title'); ?>
	  </div>
	</div>

	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Họ tên");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'full_name',array('placeholder' => Yii::t('main','Họ tên (bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'full_name'); ?>
	  </div>
	</div>

	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Email");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'email',array('placeholder' => Yii::t('main','Email (bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'email'); ?>
	  </div>
	</div>

	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Điện thoại");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'phone',array('placeholder' => Yii::t('main','Điện thoại (không bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'phone'); ?>
	  </div>
	</div>

	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Địa chỉ");?></label>
	  <div class="controls">
	    <?php echo $form->textField($model,'address',array('placeholder' => Yii::t('main','Địa chỉ (không bắt buột)'),'class' => 'input-large span10')); ?>
	    <?php echo $form->error($model,'address'); ?>
	  </div>
	</div>
	<?php if(!$model->isNewRecord): ?>
	<div class="control-group">
	  <label class="control-label"><?php echo Yii::t("main","Hoạt động");?></label>
	  <div class="controls">
	    <?php echo $form->checkBox($model,'status',array('class' => 'ios')); ?>
	    <?php echo $form->error($model,'status'); ?>
	  </div>
	</div>
	<?php endif;?>
	<div class="form-actions">
	  <button type="submit" class="btn btn-large btn-primary"><?php echo Yii::t("main","Lưu");?></button>
	  <button type="reset" class="btn btn-large"><?php echo Yii::t("main","Hủy bỏ");?></button>
	</div>
</fieldset> 
<?php $this->endWidget(); ?>